package com.vk.project.service.impl.inner;

import com.vk.project.service.UserInterfaceInfoService;
import com.vk.vkapicommon.service.InnerUserInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @ClassName : InnerUserInterfaceInfoServiceImpl
 * @Description : 内部用户接口信息服务实现类
 * @Author : LYQ
 * @Date: 2023-11-26 12:21:54
 */
@DubboService
public class InnerUserInterfaceInfoServiceImpl implements InnerUserInterfaceInfoService {

    @Resource
    private UserInterfaceInfoService userInterfaceInfoService;

    /**
     * 调用接口统计
     *
     * @param interfaceInfoId 接口Id
     * @param userId          用户Id
     * @return 返回是否计数成功
     */
    @Override
    public boolean invokeCount(long interfaceInfoId, long userId) {
        return userInterfaceInfoService.invokeCount(interfaceInfoId, userId);
    }
}
